// cvisionDlg.h : header file
//

#pragma once

#include "cxcore.h"
#include "afxwin.h"
#include "clPlot.h"

// CVideoAnalysisDlg dialog
class CVideoAnalysisDlg : public CDialog
{
// Construction
public:
	CVideoAnalysisDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_CVISION_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;
	IplImage *image;	// This is the image pointer (input)

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnOpen();
	afx_msg void OnBnClickedOk();
	afx_msg void OnBnClickedCancel();
	afx_msg void OnProcess();
	int duration;
	afx_msg void OnBnClickedButtonPause();
	afx_msg void OnBnClickedButtonStop();
public:
	int m_iFrameno;
public:
	float m_fEnergy;
public:
	float m_fEnergyDiff;
public:
	float m_fMutualinfo;
public:
	float m_fNMutualinfo;
public:
	afx_msg void OnTimer(UINT_PTR nIDEvent);
public:
	CStatic m_stcFrameno;
public:
	CStatic m_stcEnergy;
public:
	CStatic m_stcEnergyDiff;
public:
	CStatic m_stcMutualInfo;
public:
	CStatic m_stcNMutualInfo;
	//clPlot m_Plot;
	BOOL canSize;
	CTime ctStartTime;

public:
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
};
